package com.briup.sxau.bean;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;

@Data
@Entity(name = "t_user")
public class User {
    @Id
    private String id;
    private String username;
    private String password;

    private void setId(String id){

    }
    public User(){
        //使用UUID自定义主键的生成
        this.id = UUID.randomUUID().toString().replace("-","");
    }
}
